Indeed, passing a .rootContainer as fileIdentifier does return a URL like:
let url = try! await NSFileProviderManager(for: myDomain)?.getUserVisibleURL(for: .rootContainer)
but then:
NSWorkspace.shared.open(url!)
shows an error dialog: The application “MyApp” does not have permission to open “MyApp-FileProviderExtension-1.”
Topic:
App & System Services
SubTopic:
Core OS
Tags: